package com.example.test1


import android.os.Bundle

import androidx.appcompat.app.AppCompatActivity


import android.widget.TextView
import android.widget.Toast

open class MainActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val toggleButton: TextView = findViewById(R.id.change_icon)
        toggleButton.setOnClickListener {
            Toast.makeText(this,"替换了新图标",Toast.LENGTH_LONG).show()
            IconChanger(this).changeIconToNew()
        }
    }


}